<div id="flashes">
<?php if ($sf_user->hasFlash('error')) { ?>
    <div class="error"><?php echo $sf_user->getFlash('error') ?></div>
    <br/>
<?php } ?>
<?php if ($sf_user->hasFlash('notice')) { ?>
    <div class="notice"><?php echo $sf_user->getFlash('notice') ?></div>
    <br/>
<?php } ?>
</div>